package com.lib.online.model.dto;

import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.stereotype.Component;

@Component
public class LoginDTO {

	 @NotEmpty(message="{NotEmpty.user.name}")
	 @Size(message="{Size.user.name}", max= 29 )
	private String name;
	 @NotEmpty(message="{NotEmpty.user.name}")
	 @Size(message="{Size.user.name}", max= 29 )
	private String password; 

	public LoginDTO() {	}
	
	public LoginDTO(String name, String password) {
		
		this.name =name;
		this.password =password;
	}
	
	

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
	    return password;
	}

	public void setPassword(String password) {
	    this.password = password;
	}
	
	
	
	
	
}
